<template>
  <div id="top-bar">
    <div id="more">
      <span class="iconfont">&#xe600;</span>
    </div>
    <router-link to="/search" id="search">
      <div>
        <i class="iconfont">&#xe8af;</i>
        <span>理财智慧家</span>
      </div>
      <div>
        <i class="iconfont">&#xe6e1;</i>
      </div>
    </router-link>
    <div id="pet">
      <img alt="" src="@/assets/pet.png" />
    </div>
    <div id="add">
      <span class="iconfont">&#xeaf3;</span>
    </div>
  </div>
</template>

<script>
export default {
  data() {
    return {
      value: "",
    };
  },
};
</script>

<style lang="scss" scoped>
  @font-face {
    font-family: 'iconfont';
    src: url('../assets/iconfont/iconfont.woff2?t=1664011341460') format('woff2'),
    url('../assets/iconfont/iconfont.woff2?t=1664011341460') format('woff'),
    url('../assets/iconfont/iconfont.woff2?t=1664011341460') format('truetype');
  }
  .iconfont {
    font-family: "iconfont" !important;
    font-size: 0.21rem;
    font-style: normal;
    vertical-align:middle;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }
  #top-bar{
    height: 0.67rem;
    width: 100%;
    background-color: #fff;
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 1;
    position: fixed;
    top: 0.00rem;
    #top-bar>div{
      display: inline;
    }
    #more{
      height: 0.61rem;
      width: 0.61rem;
      line-height: 0.61rem;
      text-align: center;
      span{
        font-size: .20rem;
      }
    }
    #search{
      width: 50%;
      height: 0.37rem;
      background-color: #f8f8f8;
      border-radius: 0.67rem;
      display: flex;
      justify-content: space-between;
      margin: 0.03rem 0;
      padding: 0 0.13rem;
      align-items: center;
    }
    #pet{
      height: 0.61rem;
      width: 0.61rem;
      img{
        width :0.50rem;
        margin-top: .04rem;
      }
    }
    #add{
      height: 0.61rem;
      width: 0.61rem;
      text-align: center;
      line-height: 0.61rem;
      span{
        font-size: .20rem;
      }
    }
  }
</style>